package com.hospital.demo.mapper.jiashuai;

import com.hospital.demo.model.jiashuai.Password;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface PasswordMapper {
    int deleteByPrimaryKey(Integer account);

    int insert(Password record);

    int insertSelective(Password record);

    Password selectByPrimaryKey(Integer account);

    int updateByPrimaryKeySelective(Password record);

    int updateByPrimaryKey(Password record);

    Password selectByTypeAndNum(@Param("type") int type, @Param("account") int account);


    Password selectByNumAndPasswordAndType(@Param("account") int account,@Param("password") String password,@Param("type") int type);


}